package com.yh.jucTest;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName Test1
 * @Description TODO
 * @Author 0715-YuHao
 * @Date 2020/12/15 12:38
 */
public class Test1 {

    public static void main(String[] args) {
      /*  List<Integer> list = new ArrayList<>();
        System.out.println(list);
        add(list);
        System.out.println(list);*/
        Integer a = new Integer(0);
        for (int i = 0; i < 10; i++) {
            a++;
        }
        System.out.println(a);
    }

    public static void add(List<Integer> list) {
        for (int i = 0; i < 3; i++) {
            list.add(i);
        }
    }
}
